import router from './index.js'
import {useStateStore} from "@/stores/StateStore.js";
const stateStore = useStateStore();
const whiteList = ['/','/home']
router.beforeEach((to, from, next) => {
   // if(stateStore.token){
   //     if(to.path === '/login'){
   //         next('/')
   //     }
   //     else{
   //         next()
   //     }
   // }
   // else{
   //     if(whiteList.includes(to.path)){
   //         next()
   //     }
   //     else{
   //         next('/login')
   //     }
   // }
})